
<script>
	import share from "./utils/share.js";
	import {
		Request
	} from '@/utils/request.js';
	// base
	export default {
		globalData:{
			 http_url: 'https://im.numtwin.com',
			 static_url: 'https://im.numtwin.com',
			  // socket_url: 'ws://47.116.177.223:8383',
			  socket_url: 'wss://im.numtwin.com/wss/',
			  dragInfo:{
			     moveX:260,
			     moveY:180,
			     state:-1
			 }
		},
		data(){
			return {
			}
		},
		onLoad(option) {
			console.log(option,'optionoption')
			if(option.referral_code){
				this.referral_code=option.referral_code;
				uni.setStorageSync('referral_code', option.referral_code);
			}
			// getApp().globalData.sss=10
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function(option) {
			if(option.query.scene){
				this.referral_code=option.query.scene;
				uni.setStorageSync('referral_code', option.query.scene);
			}
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			onShareAppMessage:share.onShareAppMessage,
			onShareAppMessage:share.onShareTimeline,
		    registerShareEvent: function() {
		      // 注册全局分享事件
		    },
		    unregisterShareEvent: function() {
		    
		    }
		  }
	}
</script>

<style>
	.consl .chooseImage{
		padding-left: 0 !important;
	}
	
	
	/*每个页面公共css */
</style>
